package com.oursnail.vo;

import lombok.Data;

/**
 * @Author 【swg】.
 * @Date 2017/12/14 18:38
 * @DESC 统一返回对象
 * @CONTACT 317758022@qq.com
 */
@Data
public class Response {
    private boolean success;//处理是否成功
    private String message;//消息提示
    private Object body;//返回数据

    public Response(){}

    public Response(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public Response(boolean success, String message, Object body) {
        this.success = success;
        this.message = message;
        this.body = body;
    }
}
